﻿@page "/404"
@inject NavigationManager NavigationManager
@layout MainLayout
<Result Status="ResultStatus.Http404"
        Title="404"
        SubTitle="@(NavigationManager.Uri + "\r\n抱歉，您访问的页面不存在。")">
    <Extra>
        <Button Type="ButtonType.Primary" OnClick="BackHome">回到首页</Button>
    </Extra>
</Result>
@code {
    void BackHome()
    {
        NavigationManager.NavigateTo("/home");
    }

}
